package cn.xiangyuanpin.dao.impl;

import cn.xiangyuanpin.dao.OrderDao;
import cn.xiangyuanpin.pojo.Order;

public class OrderDaoImpl extends  BaseDao implements OrderDao {
    @Override
    public int saveOrder(Order order) {
        String sql="insert into t_order(order_id,create_time,price,status,user_id) values(?,?,?,?,?)";
           return  update(sql,order.getOrderId(),order.getCreatTime(),order.getPrice(),order.getStatus(),order.getUserId());
    }
}
